﻿#ifndef PLAYVIDEO_H
#define PLAYVIDEO_H

#include <QObject>
#include "ffmpegmananger.h"
#include <QImage>
class playVideo: public QObject
{
    Q_OBJECT
public:
    explicit playVideo(QString strUrl,QString strOut,QObject *parent = nullptr);
    ~playVideo();
    void playstart();
    void playstop();
    void setRecActive();
    void setRecDeActive();
signals:
    void recordFlag( bool);
signals:
    void Sig_GetFrames(QImage img);
private:
    ffmpegMananger *pFFmpegMnger;
    QString m_strUrl;
    QString m_strOut;
};

#endif // PLAYVIDEO_H
